#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"

void SListTest01()
{
	SLTNode* plist;
	SLTInit(&plist);

	/*SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);*/

	SLTPushFront(&plist, 4);
	SLTPushFront(&plist, 3);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 1);

	/*SLTPopBack(&plist);
	SLTPopBack(&plist);
	SLTPopBack(&plist);
	SLTPopBack(&plist);*/

	/*SLTPopFront(&plist);
	SLTPopFront(&plist);
	SLTPopFront(&plist);
	SLTPopFront(&plist);*/

	SLTNode* find = SLTFind(&plist, 3);
	SLTModify(find, 66);

	SLTDestroy(&plist);
}

int main()
{
	SListTest01();
	return 0;
}